package service;

import common.Result;
import dataBean.UserDo;
import dataBean.UserInfoDo;

/**
 * Created by lxl on 2015/10/30.
 */
public interface UserService {

    /***
     * admin can add user and set the level for the user
     * @param userInfoDo
     * @return
     */
    public Result addUser( UserInfoDo userInfoDo) ;

    /***
     * the student and teacher can modify their password
     * @param userDo
     * @param oldPassword
     * @return
     */
    public Result modifyPassword( UserDo userDo , String oldPassword ) ;

    /***
     *
     * @return
     */
    public Result modifyUserInfo() ;

    /***
     * login for user
     * @param userDo
     * @return
     */
    public Result login( UserDo userDo ) ;


}
